package com.esunrising.esungsc.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;


import javax.persistence.*;
import java.time.LocalDateTime;

import org.hibernate.annotations.GenericGenerator;


@ApiModel(description = "系统配置")
@EqualsAndHashCode
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "SYS_CONFIG")
public class SysConfig{

    /**
    * 主键
    */
    @Id
    @ApiModelProperty("主键")
    @GenericGenerator(name = "customUUID", strategy = "com.esunrising.esungsc.common.utils.CustomUUIDGenerator")
    @GeneratedValue(generator = "customUUID")
    @Column(name = "UUID")
    private String uuid;

    /**
    * 配置名称
    */
    @ApiModelProperty("配置名称")
    @Column(name = "CONFIG_NAME")
    private String configName;

    /**
    * 唯一标识
    */
    @ApiModelProperty("唯一标识")
    @Column(name = "CONFIG_KEY")
    private String configKey;

    /**
    * 配置值
    */
    @ApiModelProperty("配置值")
    @Column(name = "CONFIG_VALUE")
    private String configValue;

    /**
    * 最后更新时间
    */
    @ApiModelProperty("最后更新时间")
    @Column(name = "UPDATE_DATE")
    private LocalDateTime updateDate;


}